<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 4. 编写一个函数，计算三个不同数字的大小，按从小到大顺序打印
    function fun(a,b,c){
        //abc1
        //acb2
        //bac3
        //bca4
        //cab5
        //cba6
        if(a<b && a<c && b<c){
            console.log(a,b,c)//abc1

        }else if(a<c && a<b && c<b){
          console.log(a,c,b)//acb2
         //3       
        }else if(b<a && b<c && a<c){
            console.log(b,a,c)//bac3
        }
         //4       
         else if(b<a && b<c && c<a){
            console.log(b,c,a)//bca4
        }
         //5       
         else if(c<a && c<b && a<b){
            console.log(c,a,b)  //cab5
        }
         //6       
         else if(c<b &&  c<a && b<a){
            console.log(c,b,a) //cba6
        }
    }
    fun(3000,1000,200000000)
</script>
</html>